package com.egg.mall.constant;


import com.egg.common.core.constant.StringPool;
import com.egg.common.core.constant.rabbit.RabbitExchange;

/**
 * @author east
 * @describe 消息交换
 */
public interface MallRabbitExchange {


    String DIRECT_EXCHANGE = MallConstant.SYSTEM_NAME + StringPool.DOT + RabbitExchange.DIRECT + StringPool.DOT;

    /**
     * 延迟队列
     * 需要手动进行 Exchanges 添加
     * Arguments:x-delayed-type=direct
     */
    String X_DELAYED_MESSAGE_EXCHANGE = MallConstant.SYSTEM_NAME + StringPool.DOT + "exchange.x-delayed-message" + StringPool.DOT;


    /**
     * 订单超时
     */
    String ORDER_TIMEOUT_EXCHANGE = X_DELAYED_MESSAGE_EXCHANGE + "order" + StringPool.DOT + "timeout";


}
